package com.kandinfo.survey.common.service.impl;

import java.util.List;

import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.stereotype.Service;

import com.kandinfo.base.admin.repository.mongo.MongoRepository;
import com.kandinfo.survey.common.mongo.QcQuestionDto;
import com.kandinfo.survey.common.service.MongoQuestionService;

/**
 * mongo ServiceImpl, created on 12/1/2016
 * 
 * @author Patrick-chenzp
 */
@Service
public class MongoQuestionServiceImpl extends MongoRepository<QcQuestionDto, Long> implements MongoQuestionService {

    @Override
    public List<QcQuestionDto> findByCriteria(Criteria criteria) {
        return super.findByCondition(criteria);
    }

    @Override
    public Class<? extends QcQuestionDto> getTClass() {
        return QcQuestionDto.class;
    }

}
